package y24.m3.java;

import java.util.Scanner;
public class shiyan2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int count = 1;
        int sum = 0;
        int num = scanner.nextInt();
        int n = num;
        while (n > 9){
            sum +=  n%10;
            sum *= 10;
            count++;
            n/=10;
        }
        sum += n;
        if (sum == num){
            System.out.println("这个数是一个回文数");
        }else {
            System.out.println("这个数不是一个回文数");
        }
        System.out.println("这是一个" + count + "位数");
    }
}
